package com.lebang.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Repository
public interface SysCommonMapper {

    List<Map<String, Object>> listByQuery(@Param("table") String table, @Param("pageSize") int pageSize, @Param("startNum") int startNum, @Param("queryMap") Map<String, String> queryMap, @Param("timeMap") Map<String, String> timeMap, @Param("searchMap") Map<String, String> searchMap,@Param("orderBy")String orderBy);

    long countByQuery(@Param("table") String table, @Param("queryMap") Map<String, String> queryMap, @Param("timeMap") Map<String, String> timeMap, @Param("searchMap") Map<String, String> searchMap);

    int deletedData(@Param("table") String table, @Param("idList") List<Integer> idList);

    Integer selectmarketApi(@Param("idList") List<Integer> idList);

    Integer enablebyid(@Param("id") Integer id, @Param("status") String status, @Param("table") String table);

    Integer chenckNameByTable(@Param("table") String table, @Param("name") String name);

    Integer commonSwitch(@Param("id") Integer id, @Param("status") String status, @Param("table") String table, @Param("feild") String feild);
}
